package com.jinlia.show.modules.base.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jinlia.show.modules.base.system.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
    /**
     * 获取角色拥有的菜单ID集合
     *
     * @param roleId 角色ID
     * @return 菜单ID集合
     */
    List<Long> listMenuIdsByRoleId(Long roleId);
    /**
     *
     * @param roleIds
     * @return
     */
    List<String> getButtonPermsByRoleIds(@Param("roleIds") Long[] roleIds);
}
